package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {

    List<Supplier> list(@Param("offSet") int offSet, @Param("rows") Integer rows, @Param("supplierName") String supplierName);

    Integer getSupplierCount(@Param("supplierName") String supplierName);

    Supplier findSupplierByName(@Param("supplierName") String supplierName);

    void addSupplier(Supplier supplier);

    void updateSupplier(Supplier supplier);

    List<Supplier> getSupplierByIds(String[] id);

    void deleteSupplier(String[] id);

}
